<template>
  <div class="banner" v-show="v_src">
    <div class="content">
      <i><a href="#">在线选购</a>,尊享全国免费顺丰配送</i>
      <img src="~assets/top/x.png" alt="" @click="v_src = !v_src"/>
    </div>
  </div>
</template>

<script>
  export default {
    name: "TopBanner",
    data() {
      return {
        //条幅关闭按钮图片
        v_src: true
      }
    }
  }
</script>

<style scoped>
  .banner {
    height: 36px;
    background: #F6F5F3;
    padding: 4px 40px;
    box-sizing: border-box;
  }

  .content {
    text-align: center;
    height: 28px;
    line-height: 28px;
    color: #19110B;
    font-size: 14px;
    font-weight: 300;
    position: relative;
  }

  img {
    position: absolute;
    width: 16px;
    right: 0;
  }
  a{
    text-decoration-line: underline;
  }
</style>
